using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.ACM
{
    [DataContract, Table("AcmTransectionDtl")]
    public class TransectionDtl
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "TranDtlId", ResourceType = typeof(Resources.TransectionDtlResource))]
        public int TranDtlsId { get; set; }

        [ForeignKey("Transection")]
		[DataMember, Display(Name = "TranId", ResourceType = typeof(Resources.TransectionDtlResource))]
        public Nullable<int> TranId { get; set; }

        [ForeignKey("MasAccount")]
		[DataMember, Display(Name = "AccountId", ResourceType = typeof(Resources.TransectionDtlResource))]
        public Nullable<int> AccountId { get; set; }

		[DataMember, Display(Name = "DrOrCr", ResourceType = typeof(Resources.TransectionDtlResource))]
        public string DrOrCr { get; set; }

		[DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.TransectionDtlResource))]
        public Nullable<double> Amount { get; set; }

        [DataMember]
        public virtual Transection Transection { get; set; }

        [DataMember]
        public virtual MasAccount MasAccount { get; set; }



        #region RecordStatus

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion

    }
}